<h3 class="min-header"><i class="glyphicon glyphicon-education"></i> 学生管理</h3>

<!--内容开始-->
<div class="">
    <button class="btn  btn-info" ng-click="" style="float: right;"
            data-toggle="modal" data-target="#addStu">添加学生
    </button>
    <table class="table table-striped stuInfoTab">
    <thead>
    <tr>
        <th>序号</th>
        <th>学号</th>
        <th>姓名</th>
        <th>性别</th>
        <th>班级</th>
        <th>入学时间</th>
        <th>学制</th>
        <th>操作</th>
    </tr>
    </thead>

    <tbody>

	   <tr ng-repeat="item in items">
	        <td>{{$index+1}}</td>
	        <td class="tableId">{{item.sId}}</td>
	        <td>{{item.sName}}</td>
	        <td>{{item.sSex}}</td>
	        <td>{{item.sClass}}</td>
	        <td>{{item.sStarttime}}</td>
	        <td>{{item.sXuezhi}}</td>
	        <td>
	            <button class="btn btn-sm btn-info" data-toggle="modal" data-target="#editStu" ng-click="send(item)">编辑
	            </button>
	            <button class="btn btn-sm btn-danger" data-toggle="modal" data-target="#delStu" ng-click="send(item)">删除
	            </button>
	        </td>
	    </tr> 
    </tbody>
    </table>

    <!-- 模态框-添加学生（addStudent） -->
    <div class="modal fade" id="addStu" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                        &times;
                    </button>
                    <h4 class="modal-title" id="myModalLabel" style="text-align: center">
                        添加学生
                    </h4>
                </div>
                <div class="modal-body">
                    <form class="form-horizontal" action="../add/AddStudentAction.action">
                    <div class="form-group">
                            <label for="number" class="col-sm-2 control-label">用户名</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="person.num" name="person.num" placeholder="用户名">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="number" class="col-sm-2 control-label">密码</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="person.psw" name="person.psw" placeholder="密码">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="number" class="col-sm-2 control-label">学号</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="sid" name="sid" placeholder="学号">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="stuName" class="col-sm-2 control-label">姓名</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="sname" name="sname" placeholder="姓名">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="cla" class="col-sm-2 control-label">班级</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="sclass" name="sclass" placeholder="班级">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="sTime" class="col-sm-2 control-label">入学时间</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="sstarttime" name="sstarttime" placeholder="入学时间">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="xuezhi" class="col-sm-2 control-label">学制</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="sxuezhi" name="sxuezhi" placeholder="学制">
                            </div>
                        </div>
                       
                        <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                    <button type="submit" class="btn btn-primary">确定</button>
                </div>
                    </form>
                </div>
                
            </div><!-- /.modal-content -->
        </div><!-- /.modal -->
    </div>

    <!-- 模态框-编辑（editStudent） -->
    <div class="modal fade" id="editStu" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                        &times;
                    </button>
                    <h4 class="modal-title" id="" style="text-align: center">
                        修改学生信息
                    </h4>
                </div>
                <div class="modal-body">
                    <form class="form-horizontal" action="modify/UpdateStudentAction.action">
                        <div class="form-group">
                            <label for="number" class="col-sm-2 control-label">学号</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="sid" name="sid" placeholder="学号"
                                       ng-value="tableList.number">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="stuName" class="col-sm-2 control-label">姓名</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="sname" name="sname" placeholder="姓名"
                                       ng-value="tableList.name">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="name" class="col-sm-2 control-label">性别</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="ssex" name="ssex" placeholder="性别"
                                       ng-value="tableList.sex">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="cla" class="col-sm-2 control-label">班级</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="sclass" name="sclass" placeholder="班级"
                                       ng-value="tableList.class">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="sTime" class="col-sm-2 control-label">入学时间</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="sstarttime" name="sstarttime" placeholder="入学时间"
                                       ng-value="tableList.startTime">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="xuezhi" class="col-sm-2 control-label">学制</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="sxuezhi" name="sxuezhi" placeholder="学制"
                                       ng-value="tableList.xueZhi">
                            </div>
                        </div>
                        <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                    <button type="submit" class="btn btn-primary">确定</button>
                </div>
                    </form>
                </div>
                
            </div><!-- /.modal-content -->
        </div><!-- /.modal -->
    </div>

    <!-- 模态框-删除学生（editStudent） -->
    <div class="modal fade" id="delStu" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                        &times;
                    </button>
                    <h4 class="modal-title" id="" style="text-align: center">
                        删除学生
                    </h4>
                </div>
                <div class="modal-body">
                    <form class="form-horizontal">
                        <div class="form-group">
                            <label for="number" class="col-sm-2 control-label">学号</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="" placeholder="学号"
                                       ng-value="tableList.number">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="stuName" class="col-sm-2 control-label">姓名</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="" placeholder="姓名"
                                       ng-value="tableList.name">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="name" class="col-sm-2 control-label">性别</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="" placeholder="性别"
                                       ng-value="tableList.sex">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="cla" class="col-sm-2 control-label">班级</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="" placeholder="班级"
                                       ng-value="tableList.class">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="sTime" class="col-sm-2 control-label">入学时间</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="" placeholder="入学时间"
                                       ng-value="tableList.startTime">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="xuezhi" class="col-sm-2 control-label">学制</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="" placeholder="学制"
                                       ng-value="tableList.xueZhi">
                            </div>
                        </div>
                    </form>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                    <button type="button" class="btn btn-danger">删除</button>
                </div>
            </div><!-- /.modal-content -->
        </div><!-- /.modal -->
    </div>

</div>